<template>
    <div class="index-container">
        <v-breadcrumb :breadcrumbData="[{name: '基础数据'}, {name: '版本更新日志'}]"></v-breadcrumb>

        <div class="g-box">
            <div class="table">
                <table class="width100 vd-table">
                    <tbody>
                    <tr v-for="(item,index) in list" :key="index">
                        <td>
                            <div>更新版本：
                                <el-tag size="mini" type="danger">{{ item.version }}</el-tag>
                            </div>
                            <div class="mt-10">更新时间：<span class="color-666">{{ item.c_time|formatDate }}</span>
                            </div>
                            <div class="o-hidden" v-if="item.child.length">
                                <div class="pull-left mt-10">更新内容：</div>
                                <div class="pull-left o-hidden">
                                    <div class="mt-10" v-for="(item2,index2) in item.child" :key="index2">
                                        <el-tag size="mini mr-5">{{
                                                (index2 + 1) < 10 ? '0' + (index2 + 1) : index2 + 1
                                            }}
                                        </el-tag>
                                        <span class="color-666">{{ item2.content }}</span>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</template>

<script type="text/ecmascript-6">
import request from '../../common/js/request.js';
import {tool} from "../../common/js/tool.js";
import config from '../../common/js/config.js'

export default {
    data() {
        return {
            list: []
        };
    },

    computed: {},

    mounted() {
    },

    created() {
        this.getData();
    },

    methods: {
        getData() {
            request({
                url: '/manage/develop/list',
            }).then((res) => {
                this.list = res.data;
            })
        },

    },

};
</script>

<style lang="less" rel="stylesheet/less" scoped>
@import url("../../common/css/variable.less");
</style>
